package com.sandasai.action.admin;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.sandasai.service.AdminManager;
@Controller
@Scope("prototype")
public class NoticePostingPageAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * @return
	 */
	@Resource
	private AdminManager adminManager;
	public String execute() {
		String notice = adminManager.getNoticeContent();
		ActionContext ctx = ActionContext.getContext();
		ctx.put("notice", notice);
		return SUCCESS;
	}
}